import { FC } from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import { RecoilRoot } from 'recoil';
import { BASE_PATH } from '@/models/route';
import Layout from '@/layouts/index';

import '@/assets/styles/common.scss';
import '@/assets/styles/yunke.scss';

const App: FC = () => (
  <RecoilRoot>
    <Router basename={BASE_PATH}>
      <Layout />
    </Router>
  </RecoilRoot>
);

export default App;
